package visao;

import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

public class Menu extends JFrame {

	private JPanel contentPane;
	private JButton btnCd;
	private JButton btnMusico;
	private JButton btnMusica;
	private TelaCd telaCd = new TelaCd();
	private TelaMusica telaMusica = new TelaMusica();
	private TelaMusico telaMusico = new TelaMusico();
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Menu frame = new Menu();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Menu() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		btnCd = new JButton("Cd");
		btnCd.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				
				//telaCd.
				
			}
		});
		btnCd.setBounds(10, 62, 109, 99);
		contentPane.add(btnCd);
		
		btnMusico = new JButton("Musico");
		btnMusico.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				//telaMusico.AbrirTela(1);
				telaMusico.setEnabled(true);
			}
		});
		btnMusico.setBounds(142, 62, 109, 99);
		contentPane.add(btnMusico);
		
		btnMusica = new JButton("Musica");
		btnMusica.setBounds(276, 62, 109, 99);
		contentPane.add(btnMusica);
	}
}
